package com.fc.backingbeans.calculators;

import javax.faces.bean.ViewScoped

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Component

import com.fc.calculators.BmiCalculator
import com.fc.user.Gender

/**
 * 
 * @author aacs
 *
 */
@Component
@ViewScoped
class BmiCalculatorBean extends UserValueCalculatorBase {
	@Autowired private BmiCalculator calculator

	@Override
	public void calculate() {
		result = calculator.calculate(weight, height)
	}
}
